@import "~antd/es/style/variable.less";

html,
body,
#root {
  height: 100%;
  overflow: hidden;
}

.colorWeak {
  filter: invert(80%);
}

.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.center {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.column {
  flex-direction: column;
}

.oneline {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ant-card-body{
  padding: 0 !important;
}

@font-face {
  font-family: "OPPOSans";
  src: url("http://file.plreport.com/fonts/OPPOSans/OPPOSans-R.ttf");
}

@font-face {
  font-family: "ResourceHanRounded";
  src: url("http://file.plreport.com/fonts/ResourceHanRounded/ResourceHanRoundedCN-Regular.ttf");
}

@font-face {
  font-family: "puhui";
  src: url("http://file.plreport.com/fonts/puhui/Alibaba-PuHuiTi-Regular.ttf");
}

@font-face {
  font-family: "syh";
  src: url("http://file.plreport.com/fonts/sc/SourceHanSans-Heavy.otf");
}

@font-face {
  font-family: "sc";
  src: url("http://file.plreport.com/fonts/sc/SC-ExtraLight.otf");
}

@font-face {
  font-family: "FandolFang";
  src: url("http://file.plreport.com/fonts/sc/FandolFang-Regular.otf");
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead>tr,
    &-tbody>tr {

      >th,
      >td {
        white-space: pre;

        >span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active),
(-ms-high-contrast: none) {
  body .ant-design-pro>.ant-layout {
    min-height: 100vh;
  }
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bglight {
  background-image: linear-gradient(145deg,
      #bee9ff 0%,
      #99dbff 25%,
      #ffc4f1 50%,
      #99dbff 75%,
      #bee9ff 100%);
  background-size: 400% 400%;
  animation: bgmove 20s linear 0s infinite alternate forwards;
}

.bgbottom {
  background-image: linear-gradient(145deg,
      #33c97f 0%,
      #2bca71 25%,
      #0a9f5a 50%,
      #2bca71 75%,
      #33c97f 100%);
  background-size: 400% 400%;
  animation: bgmove 20s linear 0s infinite alternate forwards;
}

@keyframes bgmove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#content .ant-tabs-nav::before {
  border: none !important;
}

.ant-pro-top-nav-header-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.ant-pro-top-nav-header-logo {
  img {
    height: 22px !important;
  }

  h1 {
    padding-right: 24px;
    font-weight: bolder;
    font-size: 22px;
    background-image: -webkit-linear-gradient(bottom,
        #009146,
        #25bd64,
        #3cff7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.imgbg {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.ant-pro-basicLayout-content {
  margin: 0 !important;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.diybtn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0px 14px 2px 14px;
  background-color: #ffbb00;
  border-radius: 30px;
  box-shadow: 0px 0px 2px transparent;
  cursor: pointer;
  transition: all 0.4s;

  &:hover {
    background-color: #ffc115;
    border-radius: 6px;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
  }

  span {
    color: #fff;
    font-weight: bolder;
    letter-spacing: 2px;
  }
}

div.ant-typography {
  margin: 0 !important;
}

.ant-typography {
  p {
    margin: 0 !important;
  }
}

.ant-upload.ant-upload-drag {
  background-color: transparent !important;
  border: none !important;
}

.ant-upload.ant-upload-drag .ant-upload {
  padding: 0 !important;
}

.fixtotop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: auto;
  color: #fff;
  font-size: 32px;
  background-color: @primary-color;
  border-radius: 16px 0px 0px 16px;
  cursor: pointer;

  .icon {
    transition: all 1s;
  }

  &:hover .icon {
    animation: movetop 0.5s linear 0s infinite alternate forwards;
  }
}

@keyframes movetop {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.fixedheader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 48px;
}

.databg {
  background-image: linear-gradient(145deg,
      #00d5b4 0%,
      #00c3bd 25%,
      #0086db 50%,
      #00c3bd 75%,
      #00d5b4 100%);
  background-size: 400% 400%;
  animation: bgmove 20s linear 0s infinite alternate forwards;
}

.tempbg {
  background-image: linear-gradient(145deg,
      #00d5b4 0%,
      #00c3bd 25%,
      #ec8a00 50%,
      #00c3bd 75%,
      #00d5b4 100%);
  background-size: 400% 400%;
  animation: bgmove 20s linear 0s infinite alternate forwards;
}

.ant-collapse-header {
  padding: 12px 0 !important;
}

.ant-collapse-content-box {
  padding: 12px 0 !important;
}

.card-container p {
  margin: 0;
}

.card-container>.ant-tabs-card .ant-tabs-content {
  min-height: 500px;
  margin-top: -16px;
  border-radius: 12px;
}

.card-container>.ant-tabs-card .ant-tabs-content>.ant-tabs-tabpane {
  padding: 16px;
  background: #fff;
  border-radius: 12px;
}

.card-container>.ant-tabs-card .ant-tabs-content>.ant-tabs-tabpane:first-child {
  padding: 16px;
  background: #fff;
  border-radius: 0 12px 12px 12px;
}

.card-container>.ant-tabs-card>.ant-tabs-nav::before {
  display: none !important;
}

.card-container>.ant-tabs-card .ant-tabs-tab,
[data-theme="compact"] .card-container>.ant-tabs-card .ant-tabs-tab {
  background: transparent;
  border-color: transparent;
}

.card-container>.ant-tabs-card .ant-tabs-tab-active,
[data-theme="compact"] .card-container>.ant-tabs-card .ant-tabs-tab-active {
  background: #fff;
  border-color: #fff;
}

#components-tabs-demo-card-top .code-box-demo {
  padding: 24px;
  overflow: hidden;
  background: #f5f5f5;
}

[data-theme="compact"] .card-container>.ant-tabs-card .ant-tabs-content {
  height: 120px;
  margin-top: -8px;
}

[data-theme="dark"] .card-container>.ant-tabs-card .ant-tabs-tab {
  background: transparent;
  border-color: transparent;
}

[data-theme="dark"] #components-tabs-demo-card-top .code-box-demo {
  background: #000;
}

[data-theme="dark"] .card-container>.ant-tabs-card .ant-tabs-content>.ant-tabs-tabpane {
  background: #141414;
}

[data-theme="dark"] .card-container>.ant-tabs-card .ant-tabs-tab-active {
  background: #141414;
  border-color: #141414;
}

.hover {
  display: flex;
  flex-shrink: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  outline: none;
  box-shadow: var(--box-shadow);
  transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) scale(var(--scale, 1));
  transition: box-shadow 300ms ease;
  appearance: none;
}

.ant-pro-card-body {
  padding: 0 !important;
}

.ant-pro-table .ant-pro-table-search {
  padding: 6px !important;
}

.ant-pro-table-list-toolbar-right {
  flex: 1 !important;
  justify-content: space-between !important;
}

.ant-pro-table-list-toolbar-filter {
  margin-left: 0px !important;
}

.ant-space-item {
  padding-right: 4px;
}

.ant-pro-table-list-toolbar-container {
  padding: 0 !important;
}

.ant-tabs-content-holder {
  >div {
    height: 100% !important;

    >div {
      height: 100%;
    }
  }
}

#template {
  .ant-drawer-body {
    padding: 12px !important;
    overflow: hidden !important;
  }

  .ant-drawer-content {
    border-radius: 8px !important;
  }

  .ant-tabs-nav {
    width: 110% !important;
  }
}

.sketch-picker {
  width: 256px !important;
}

.ant-layout-content {
  background-color: #f9f9f9 !important;
}

.hoverable {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  color: #666;
  cursor: pointer;
  transition: all 0.4s;

  &:hover {
    color: #000;
    background-color: #1dac561a;
  }
}

.items {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  color: #666;
  line-height: 36px;
  cursor: pointer;
  transition: all 0.4s;

  &:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
  }
}

.titles {
  width: 100%;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
  background-color: #33c97f;
  border-radius: 8px;
}

.tag {
  position: relative;
  display: inline-block !important;
  display: block;
  padding: 4px 6px;
  line-height: 1;
  background-color: @primary-color;
  border-radius: 4px;
  cursor: pointer !important;

  .close {
    display: block;
    display: inline-block !important;
    width: 0px;
    height: 0px;
    margin-left: 0px;
    background: url("./assets/delete.png") no-repeat center;
    background-color: rgba(255, 255, 255, 0.9);
    background-size: contain;
    border-radius: 80%;
    cursor: pointer !important;
    transition: all 0.4s;
  }

  &:hover {
    .close {
      width: 2vh;
      height: 2vh;
      margin-left: 6px;
    }
  }
}

#diytabes {
  min-height: 100vh;
  .ant-tabs-nav {
    position: fixed;
    z-index: 999;
    width: 100%;
    margin: 0 !important;
    background-color: #fff;

    &::before {
      border: none !important;
    }
  }
}

#contents {
  .ant-drawer-content-wrapper {
    box-shadow: none !important;
  }
}

.ant-pro-form-login-container {
  padding: 20px 0 48px 0 !important;
}

.echarts-for-react {
  height: 100% !important;

  >* {
    height: 100%;
  }
}

.columntab {
  .ant-tabs-tab {
    padding: 0 !important;
    padding-right: 12px !important;
  }
}

.ant-upload.ant-upload-select-picture-card {
  overflow: hidden !important;
}

.ant-table {
  background-color: transparent !important;
}

.ant-table-container {
  border: none !important;
}

tr {
  >div {
    display: table-cell;
    font-weight: bold;
    text-align: -internal-center;
    vertical-align: inherit;
  }
}

#fixtable {
  .ant-col {
    flex: 1 !important;
    overflow: hidden;
  }
}

.break-avoid {
  page-break-inside: avoid;
}

.sets{
  -webkit-user-modify: read-write-plaintext-only !important;
}